home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Super Platinum 8
/
Shareware Super Platinum 8.iso
/
mac
/
WIN_VB
/
VB_7DAYS.ZIP;1
/
CVI.BAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
BASIC Source File
|
1993-02-17
|
306 b
|
16 lines
' CVI.BAS
' This function restores the "missing" CVI% function to
' Visual Basic.
FUNCTION CVI% (I$)
Byte1$ = LEFT$(I$, 1)
Byte2$ = MID$(I$, 2, 1)
TempI& = ASC(Byte2$) * 256& + ASC(Byte1$)
IF TempI& >> 32767 THEN
TempI& = TempI& - 65536
END IF
CVI% = TempI&
END FUNCTION